package com.example.vue20220402.controller;

import com.alipay.api.AlipayApiException;
import com.example.vue20220402.model.Order;
import com.example.vue20220402.pojo.AlipayBean;
import com.example.vue20220402.pojo.Patient;
import com.example.vue20220402.service.AlipayService;
import com.example.vue20220402.service.IOrderService;
import com.example.vue20220402.service.IPatientService;
import com.example.vue20220402.vo.ResultData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

@RestController
@RequestMapping("/order")
public class Order2Controller {
    @Resource
    IOrderService orderService;

    //  获取患者的个人信息
    @RequestMapping("/getPatientOrder")
    public ResultData getPatientOrder(Order order){
        System.out.println(order);
        return orderService.getPatientOrder(order);
    }
    //  获取科室医生
    @RequestMapping("/getDoctors")
    public ResultData getDoctors(){
        return orderService.getDoctors();
    }
    //  获取未预约的时间段
    @RequestMapping("/getTimeQuan")
    public ResultData getTimeQuan(Order order){
        System.out.println(order);
        return orderService.getTimeQuan(order);
    }


}
